//预发机运行故障日报表
var pageii = null;
var grid = null;
$(function() {

	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "cageareaname",
			name : "料笼区域",
			
		}, {
			colkey : "cageno",
			name : "料笼号",
			
		}, {
			colkey : "dentsitys",
			name : "密度",
		},
		 {
			colkey : "tolerance",
			name : "公差",
		},
		{
			colkey : "measured",
			name : "实测",
			
		},{
			colkey : "facade",
			name : "外观",
			
		},{
			colkey : "judge",
			name : "判定",
			
		},{
			colkey : "recordtime",
			name : "记录时间",
			renderData : function(rowindex,data, rowdata, column) {
				return new Date(data).format("yyyy-MM-dd");
		}
			
		},{
			colkey : "devicenum",
			name : "机台号",
			
		},{
			colkey : "checkperson",
			name : "检查人",
			
		},{
			colkey : "exceptiondispose",
			name : "异常处理",
			
		},
	],
		jsonUrl : rootPath + '/quality/quality_findByPage.shtml',
		dymCol:true,
		checkbox : true,
		serNumber : false
	});
	
	
	
	
	$("#search").click("click", function() {// 绑定查询按扭
		var searchParams = $("#searchForm").serializeJson();
		grid.setOptions({
			data : searchParams
		});
	});
	
	
	
	
	
	
});
